<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>小米水平导航栏</title>
    <style>
      .topbar {
        background-color: #333333;
      }

      .topbar a {
        display: inline-block;
        font-size: 12px;
        color: #b0b0b0;
        text-decoration: none;
        padding: 10px 5px;
      }

      .topbar a:hover {
        color: #fff;
      }

      .topbar span {
        color: #424242;
      }
    </style>
  </head>
  <body>
    <div class="topbar">
      <a href="#">小米官网</a><span> | </span> <a href="#">小米商城</a><span> | </span> <a href="#">MIUI</a
      ><span> | </span> <a href="#">IoT</a><span> | </span> <a href="#">云服务</a><span> | </span>
      <a href="#">天星数科</a><span> | </span> <a href="#">有品</a><span> | </span> <a href="#">小爱开放平台</a
      ><span> | </span> <a href="#">资质证照</a><span> | </span> <a href="#">协议规则</a><span> | </span>
      <a href="#">下载app</a><span> | </span>
      <a href="#">Select Location</a>
    </div>
  </body>
</html>
